import cv2 as cv
import numpy as np
x=np.uint8([250])
y=np.uint8([10])
print(x+y)
print(cv.add(x,y))
shape=(200,200,1)
img1 = np.ones(shape, np.uint8)*250
img2 = np.ones(shape, np.uint8)*10
cv.imshow("pic",img1+img2)
cv.waitKey(0)
cv.imshow("pic",cv.add(img1,img2))
cv.waitKey(0)

cv.destroyAllWindows()